package com.atguigu.service;

import com.atguigu.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO
 *
 * @Description
 * @Author dubao
 * @Date 2023年 05月 30日 11:09
 **/
@Component
@FeignClient("cloud-payment-service")
public interface OrderFeignService {


    @GetMapping("/payment/get/{id}")
    CommonResult getPaymentById(@PathVariable("id") Long id);

    @GetMapping(value = "/payment/feign/timeout")
    String paymentFeignTimeOut();

}
